<template>
  <div>
    <HeaderBar :currentName="_t18('recharge_liushui', ['aams', 'robinhood2'])"></HeaderBar>

    <div style="padding: 0 0.4rem">

      <div v-for="item in list" style="margin-top: 5%;border-bottom: 1px solid #ddd;padding-bottom: 6%">
        <div style="display: flex;justify-content: space-between">
          <div style="font-weight: bold;font-size: 16px">
           {{item.remark}}
          </div>
          <div style="font-weight: bold;font-size: 14px">
            {{item.amount}}
          </div>
        </div>
        <div style="color: #aeadb2;margin-top: 2%">
          {{item.symbol}}
        </div>
        <div style="color: #aeadb2;margin-top: 2%">
        {{item.createTime}}
        </div>
      </div>
      <Nodata v-if="list.length === 0"></Nodata>
    </div>
  </div>
</template>
<script setup>

import {_t18} from "@/utils/public";
import {getwalletRecordlist} from "@/api/trade";
// import {onReachBottom} from "@dcloudio/uni-app"
// import 
// 撤单
const list = ref([])
const page = ref(1)
const route = useRoute();
const item = JSON.parse(route.query.item); // 获取 name 参数
const cancelOrder = async () => {
  const pas = {
    symbol:item.icon,
    type:item.type,
	page:page.value
  }
  const res = await getwalletRecordlist(pas)
  list.value = res.rows
}
onMounted(() => {
  cancelOrder()
})

// onReachBottom(async ()=>{
// 	page.value++
// 	const res = await getwalletRecordlist(pas)
// 	list.value.push(res.rows)
// })

</script>
<style scoped lang="scss">

</style>
